package com.locust.upms.rpc.api;

import java.util.List;

import com.locust.base.common.base.service.support.IService;
import com.locust.upms.rpc.entity.UpmsDepartment;

public interface UpmsDepartmentService extends IService<UpmsDepartment, Integer> {
	
	/**
	 * 查询所有根节点
	 * @return
	 */
	public List<UpmsDepartment> selectRoot(UpmsDepartment entity) ;

	/**
	 * 根据父ID查询子节点
	 * @param pid
	 * @return
	 */
	public List<UpmsDepartment> selectChildren(Integer pid) ;
	
	/**
	 * 递归节点
	 * @return
	 */
	public List<UpmsDepartment> tree(UpmsDepartment entity) ;
	
	/**
	 * 将用户从部门中移除
	 * @param primaryKey
	 */
	public void removeDepartmentAssignUser(String ids);

}
